<?php
/**
 * @project     : Travel
 * @copyright   : 
 * @desc        : Thuc hien cac thao tac tren bang book_room
 * @coder       : Truong cong quyen
 * @createdate  : 3/11/2011
*/
class Book_room_model extends CI_Model
{
    var $book_room_id=0;
    var $hotel_id='';
    var $type_room_id='';
    var $book_room_in_date='';
    var $book_room_num_date='';
    var $book_room_num_single_bed='';
    var $book_room_num_double_bed='';
    var $book_room_num_two_bed='';
    var $book_room_num_three_bed='';
    var $book_room_service_pick_to='';
    var $book_room_flight_arrival_date='';
    var $book_room_flight_ arrival_no='';
    var $book_room_flight_leave_date='';
    var $book_room_flight_ leavel_no='';
    var $book_room_gender='';
    var $book_room_customer_name='';
    var $book_room_email='';
    var $book_room_aduft_customer_num='';
    var $book_room_child_customer_num='';
    var $book_room_customer_info='';
    var $book_room_customer_address='';
    var $book_room_customer_country='';
    var $book_room_customer_tel='';
    var $book_room_customer_fax='';
    var $book_room_other_request='';
    var $book_room_how_find='';
    var $book_room_travel_type='';

    
    public function __construct() {
        parent::__construct();
    }
    
    function get_all()
    {
      
        $query = $this->db->get('book_room');
        return $query->result();
        
    }
    
     function get_by_id($id)
    {
        $this->db->where('book_room_id', $id);
        $query = $this->db->get('book_room');
        return $query->row();
    }
    

}